package com.xiaofeng.oss.adapter;

import com.xiaofeng.oss.entity.FileInfo;
import org.springframework.web.multipart.MultipartFile;

import java.io.InputStream;
import java.util.ArrayList;
import java.util.List;

/**
 * Created with IntelliJ IDEA
 *
 * @Author: chc
 * @Date: 2024/02/02/14:55
 * @Description:
 */
public class AliStorageAdapter implements StorageAdapter {
    @Override
    public void createBucket(String bucket) {

    }

    @Override
    public void uploadFile(MultipartFile uploadFil, String bucket, String objectName) {

    }

    @Override
    public List<String> getAllBucket() {
        ArrayList<String> list = new ArrayList<>();
        list.add("ali");
        return list;
    }

    @Override
    public List<FileInfo> getAllFiles(String bucket) {
        return null;
    }

    @Override
    public InputStream downloadFile(String bucket, String objectName) {
        return null;
    }

    @Override
    public void deleteBucket(String bucket) {

    }

    @Override
    public void deleteFile(String bucket, String objectName) {

    }

    @Override
    public void updateFile(MultipartFile uploadFile, String bucket, String objectName) {

    }

    @Override
    public String getUrl(String bucket, String objectName) {
        return null;
    }
}
